package com.example.entity;

import java.io.Serializable;

/**
 * 菜品信息(Goods)实体类
 *
 */
public class Goods implements Serializable {
    private static final long serialVersionUID = -80685657190910503L;
/**
     * ID主键
     */
    private Integer id;
/**
     * 图片
     */
    private String fileimg;
/**
     * 名称
     */
    private String name;
/**
     * 分类ID
     */
    private Integer categoryid;
/**
     * 口味类型
     */
    private String typename;
/**
     * 价格
     */
    private Double price;
/**
     * 特价
     */
    private Double tjprice;
/**
     * 是否推荐
     */
    private String istj;
/**
     * 详情
     */
    private String content;
/**
     * 创建日期
     */
    private String savetime;
/**
     * 逻辑删除字段
     */
    private Integer delstatus;
    private Integer kcnum;
    private Integer xlnum;
    private String catename;
    private Category category;

    // 添加折扣相关属性
    private String isdiscount; // 是否折扣
    private Double discountprice; // 折扣价格

    public Integer getXlnum() {
        return xlnum;
    }

    public void setXlnum(Integer xlnum) {
        this.xlnum = xlnum;
    }

    public Integer getKcnum() {
        return kcnum;
    }

    public void setKcnum(Integer kcnum) {
        this.kcnum = kcnum;
    }

    public String getCatename() {
        return catename;
    }

    public void setCatename(String catename) {
        this.catename = catename;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFileimg() {
        return fileimg;
    }

    public void setFileimg(String fileimg) {
        this.fileimg = fileimg;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryid() {
        return categoryid;
    }

    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }

    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTjprice() {
        return tjprice;
    }

    public void setTjprice(Double tjprice) {
        this.tjprice = tjprice;
    }

    public String getIstj() {
        return istj;
    }

    public void setIstj(String istj) {
        this.istj = istj;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSavetime() {
        return savetime;
    }

    public void setSavetime(String savetime) {
        this.savetime = savetime;
    }

    public Integer getDelstatus() {
        return delstatus;
    }

    public void setDelstatus(Integer delstatus) {
        this.delstatus = delstatus;
    }

    // 添加getter/setter方法
    public String getIsdiscount() {
        return isdiscount;
    }
    
    public void setIsdiscount(String isdiscount) {
        this.isdiscount = isdiscount;
    }
    
    public Double getDiscountprice() {
        return discountprice;
    }
    
    public void setDiscountprice(Double discountprice) {
        this.discountprice = discountprice;
    }
}

